package com.cargohu.aishouyu.file.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改文件管理表参数
 *
 * @author aaron.wang
 * @since 2024-01-07
 */
@Data
@Schema(description = "修改文件管理表参数")
public class FileUpdateDTO implements Serializable{

private static final long serialVersionUID=1L;

    @Schema(description = "编号")
    @NotNull(message = "编号不能为空")
    private Long id;

    @Length(max = 100, message = "长度超过限制")
    private String fileName;

    @Length(max = 200, message = "长度超过限制")
    private String bucketName;

    @Length(max = 100, message = "长度超过限制")
    private String original;

    @Length(max = 50, message = "长度超过限制")
    private String type;

    @Schema(description = "文件大小")
    private Long fileSize;

    @Length(max = 1, message = "长度超过限制")
    private String delFlag;

}


